33 33 votes An unrestricted use of the "$goto$" statement is harmful because it makes it more difficult to verify programs it increases the running time of the programs it increases the memory required for the programs it results in the compiler generating longer machine code Related Questions :GATE CSE 1989 | Question: 3-i Programming in C gate1994 programming easy goto + – Kathleen 7.3k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply Chhotu commented Oct 24, 2017 reply Follow flag Reader could also refer --> https://stackoverflow.com/questions/46586/goto-still-considered-harmful 2 2 replyShare srestha commented Aug 30, 2019 reply Follow flag Same question https://gateoverflow.in/87095/gate1989-3-i 0 0 replyShare Honey badger commented Jul 1 reply Follow flag Answer from ai 0 0 replyShare Please log in or register to add a comment.
Best answer 66 66 votes Use of $goto$ takes out the structural decomposition of the code and hence it becomes very difficult to verify or debug the code. As far as performance or memory impact is concerned, $goto$ has no effect on them. Correct Answer: $A$ Arjun answered Oct 4, 2014 • edited May 8, 2019 by Naveen Kumar 3 Arjun comment Share Follow See all 3 Comments 3 3 Comments reply Angkit commented Jun 12, 2017 reply Follow flag what is "structural decomposition of the code "? 6 6 replyShare Arjun commented Jul 21, 2017 reply Follow flag Means decomposing a code to multiple basic blocks which all have a single entry and single exit. 12 12 replyShare amanbadone0 commented Dec 13, 2025 reply Follow flag The use of goto affects caching ? does it ? 0 0 replyShare Please log in or register to add a comment.
9 9 votes Solution : A) It makes it more difficult to verify programs. Proof of correctness : https://en.wikipedia.org/wiki/Goto#Criticism (1st Paragraph, last 4 lines.) SiddharthMahapatra answered Jul 21, 2017 • edited Jan 9, 2018 by SiddharthMahapatra SiddharthMahapatra comment Share Follow 0 reply Please log in or register to add a comment.